import request from '@/utils/request'

// 查询文章已报名列表列表
export function listRetirementCollect(query) {
  return request({
    url: '/retirement/retirementCollect/list',
    method: 'get',
    params: query
  })
}


// 查询文章报名记录列表列表
export function listRetirementRecord(query) {
  return request({
    url: '/retirement/retirementArticleRecord/list',
    method: 'get',
    params: query
  })
}

// 查询文章报名列表详细
export function getRetirementCollect(id) {
  return request({
    url: '/retirement/retirementCollect/' + id,
    method: 'get'
  })
}

// 新增文章报名列表
export function addRetirementCollect(data) {
  return request({
    url: '/retirement/retirementCollect',
    method: 'post',
    data: data
  })
}

// 修改文章报名列表
export function updateRetirementCollect(data) {
  return request({
    url: '/retirement/retirementCollect',
    method: 'put',
    data: data
  })
}

// 删除文章报名列表
export function delRetirementCollect(id) {
  return request({
    url: '/retirement/retirementCollect/' + id,
    method: 'delete'
  })
}
